var XX = /** @class */ (function () {
    function XX(name, age, sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
    return XX;
}());
var xx = new XX('张三', 18, '男');
// xx.sex='女' //报错  readonly声明的是只读
console.log(xx);
